package com.only.common.enums;

/**
 * @author only
 * @date 2023/6/15
 * @description
 */
public class GeneralEnumVO {
    private String id;
    private String comment;

    public GeneralEnumVO() {}

    public GeneralEnumVO(GeneralCodeEnum codeEnum) {
        this.id = codeEnum.getCode();
        this.comment = codeEnum.getComment();
    }

    public GeneralEnumVO(GeneralIdEnum idEnum) {
        this.id = idEnum.getId().toString();
        this.comment = idEnum.getComment();
    }

    public String getId() {
        return id;
    }

    public String getComment() {
        return comment;
    }

    @Override
    public String toString() {
        return "GeneralEnumVO{" +
                "id='" + id + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
